package com.blast.comicsisland.model.rank.rankbody;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by dell on 2015/6/24.
 */
public class Special {
    private String position;
    private int specialid;
    //重要字段 名称
    private String name;
    //重要字段 图片
    private String coverurl;
    private String description;

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public int getSpecialid() {
        return specialid;
    }

    public void setSpecialid(int specialid) {
        this.specialid = specialid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCoverurl() {
        return coverurl;
    }

    public void setCoverurl(String coverurl) {
        this.coverurl = coverurl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void jsonParse(JSONObject object) {
        try {
            specialid = object.getInt("specialid");
            name = object.getString("name");
            coverurl = object.getString("coverurl");
            description = object.getString("description");
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
}
